<template>
<div class="container">
<!--  <div class="dashboard-container">
    <div class="dashboard-text">name:{{ name }}</div>
    <div class="dashboard-text">roles:<span v-for="role in roles" :key="role">{{ role }}</span></div>
  </div>-->
  <el-card class="box-card" style="width: 100%;margin-top: 20px;height: auto">

    <el-tabs v-model="activeName" type="card" @tab-click="handleTabClick" style="width: 100%">
      <el-tab-pane label="签到情况" name="first" style="width: 100%"><signCount></signCount></el-tab-pane>
      <el-tab-pane label="请假情况" name="second"><holidayCount></holidayCount></el-tab-pane>
    </el-tabs>

  </el-card>
</div>
</template>
<script>
import signCount from "./signCount";
import holidayCount from "./holidayCount";
import signGraphic from "../course/signGraphic";
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components:{
    signCount,
    holidayCount
  },
  computed: {
    ...mapGetters([
      'name',
      'roles'
    ])
  },
  data(){
    return{
      activeName:'second'
    }
  },
  methods:{
    handleTabClick(){

    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
/*.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.container{
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  background-image: url('../../../img/index.png');
  background-repeat: repeat-y;
  !* 背景图垂直、水平均居中 *!
  background-position: center center;
  !* 背景图不平铺 *!
  background-repeat: no-repeat;
  !* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 *!
  background-attachment: fixed;
  !* 让背景图基于容器大小伸缩 *!
  background-size: cover;
  !* 设置背景颜色，背景图加载过程中会显示背景色 *!
  background-color: #464646;
}*/
</style>
